package com.lzh.shijicloudstack.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色信息表(Role)表实体类
 *
 * @author luzhiheng
 * @since 2022-09-26 16:47:41
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_role")
@Entity
@Table(name = "sys_role", indexes = {})
public class Role extends BaseEntity {

    /**
     * 角色名称
     */
    @Column(name = "role_name", columnDefinition = "varchar(255) COMMENT '角色名称'")
    private String roleName;

    /**
     * 角色权限字符串
     */
    @Column(name = "role_key", columnDefinition = "varchar(255) COMMENT '角色权限字符串'")
    private String roleKey;

    /**
     * 显示顺序
     */
    @Column(name = "role_sort", columnDefinition = "int COMMENT '显示顺序'")
    private Integer roleSort;

    /**
     * 角色状态（0正常 1停用）
     */
    @Column(name = "status", columnDefinition = "int COMMENT '角色状态（0正常 1停用）'")
    private Integer status;

    /**
     * 备注
     */
    @Column(name = "remark", columnDefinition = "varchar(255) COMMENT '备注'")
    private String remark;
}
